package com.yand.thread.rabbitRun2;

public class Test {

    public  static void main(String [] args){

        Tortoise tortoise = new Tortoise();

        Rabbit rabbit = new Rabbit();
        Callback callback = new  CallbackImpl(rabbit,tortoise);
        tortoise.setCallback(callback);
        rabbit.setCallback(callback);


        rabbit.start();

        tortoise.start();

    }
}
